<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.opensymphony.xwork.util.OgnlValueStack"%>
<%@ page import="com.opensymphony.xwork.ActionContext"%>
<%@ page import="com.opensymphony.xwork.interceptor.ExceptionHolder"%>
<%@ page import="com.biqee.exception.BusinessUnCheckedException"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>业务错误!</title>
</head>

<body>
<% 
    OgnlValueStack s = ActionContext.getContext().getValueStack(); 
    ExceptionHolder e;
    String s1 = new String("");;
    String name = new String("");
    for(int i = s.size();i>0;i--){
        Object obj = s.pop();
        if(obj instanceof ExceptionHolder){
            e = (ExceptionHolder)obj;
            Object o = e.getException();
            if(o instanceof BusinessUnCheckedException){
            	BusinessUnCheckedException we = (BusinessUnCheckedException)o;
                name =we.getMessage();
            }
            s1 =e.getExceptionStack();
            break;
        }
    }     
%>
<table width="400" align="center" valign="middle" border="1" cellspacing="2" cellpadding="2">
<tr><td bgcolor="blue" align="center" height="30" style="font-size:9pt;">
    <font color="white"><%=name%></font>
</td>
<tr><td align="center">
<input type=button name=return value=返回 onclick="javascript:history.go(-1);">
</td></tr>
</table>
<div style="display:none">
<H2>错误详细信息:</H2>
<%=s1%><br>

</div>
</body>
</html>